package com.sdy.auth.biz.mapper;

import com.sdy.auth.biz.model.SysResource;
import com.sdy.mvc.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 系统资源表 Mapper 接口
 * </p>
 *
 * @author zzq
 * @since 2019-06-14
 */
public interface SysResourceMapper extends BaseMapper<SysResource> {

    /**
     * 查询角色的授权资源
     * @param roleId
     * @return
     */
    List<SysResource> findResourceWithAuthByRoleId(@Param("roleId") Integer roleId);
}
